const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, //关闭语法检查
  devServer: {
    proxy: {
      '/api': {
        target: 'http://1.116.64.64:5004/api2/',
        changeOrigin: true,//允许跨域
        pathRewrite: {//发送给服务器的路径不包含/api
          '^/api': ''
        }
      }
    }
  }
})
